var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
var _a, _b;
import { EquirectangularReflectionMapping } from "three";
import { RGBELoader } from "three/examples/jsm/Addons.js";
const _0x19c353 = _0x230f;
(function(_0x34540c, _0x259e29) {
  const _0x45bd77 = { _0x38111c: 444 }, _0x33f90f = _0x230f, _0x142235 = _0x34540c();
  while (!![]) {
    try {
      const _0x48d1c1 = -parseInt(_0x33f90f(435)) / 1 + parseInt(_0x33f90f(_0x45bd77._0x38111c)) / 2 * (-parseInt(_0x33f90f(420)) / 3) + -parseInt(_0x33f90f(423)) / 4 + -parseInt(_0x33f90f(431)) / 5 * (parseInt(_0x33f90f(441)) / 6) + -parseInt(_0x33f90f(426)) / 7 + parseInt(_0x33f90f(433)) / 8 + parseInt(_0x33f90f(445)) / 9 * (parseInt(_0x33f90f(432)) / 10);
      if (_0x48d1c1 === _0x259e29) break;
      else _0x142235["push"](_0x142235["shift"]());
    } catch (_0x208870) {
      _0x142235["push"](_0x142235["shift"]());
    }
  }
})(_0x5871, 493076);
const _0x88f0d3 = /* @__PURE__ */ function() {
  let _0x441561 = !![];
  return function(_0x288006, _0x138297) {
    const _0x308606 = _0x441561 ? function() {
      if (_0x138297) {
        const _0x632b23 = _0x138297["apply"](_0x288006, arguments);
        return _0x138297 = null, _0x632b23;
      }
    } : function() {
    };
    return _0x441561 = ![], _0x308606;
  };
}(), _0x9284b = _0x88f0d3(void 0, function() {
  const _0x192500 = { _0x2fa3af: 428, _0x2c67b3: 436, _0x42c5a8: 440 }, _0x41c9c7 = { _0xdf7bcb: 427 }, _0x4203b8 = _0x230f, _0x502d3e = function() {
    const _0xca316e = _0x230f;
    let _0x2b209a;
    try {
      _0x2b209a = Function(_0xca316e(_0x41c9c7._0xdf7bcb) + '{}.constructor("return this")( ));')();
    } catch (_0x480ed7) {
      _0x2b209a = window;
    }
    return _0x2b209a;
  }, _0x2b3086 = _0x502d3e(), _0x413fed = new RegExp(_0x4203b8(429), "g"), _0x87b2b8 = "lopcaXVlhTostHIUirZNqIppwpzwXdIGW"["replace"](_0x413fed, "")[_0x4203b8(434)](";");
  let _0x3210e0, _0x139015, _0x148a4a, _0x5a1dd9;
  const _0x47ce41 = function(_0x59e858, _0x464f88, _0xb8f5c5) {
    const _0x3f5480 = _0x4203b8;
    if (_0x59e858[_0x3f5480(428)] != _0x464f88) return ![];
    for (let _0xfa1f58 = 0; _0xfa1f58 < _0x464f88; _0xfa1f58++) {
      for (let _0x1c7c79 = 0; _0x1c7c79 < _0xb8f5c5["length"]; _0x1c7c79 += 2) {
        if (_0xfa1f58 == _0xb8f5c5[_0x1c7c79] && _0x59e858[_0x3f5480(424)](_0xfa1f58) != _0xb8f5c5[_0x1c7c79 + 1]) return ![];
      }
    }
    return !![];
  }, _0x1c3a3b = function(_0x3f63e7, _0x136c32, _0x471455) {
    return _0x47ce41(_0x136c32, _0x471455, _0x3f63e7);
  }, _0x17fa0b = function(_0x5d97c9, _0x1f42d4, _0x2344c7) {
    return _0x1c3a3b(_0x1f42d4, _0x5d97c9, _0x2344c7);
  }, _0x29f795 = function(_0x4ae8c5, _0x137d9a, _0x4aed76) {
    return _0x17fa0b(_0x137d9a, _0x4aed76, _0x4ae8c5);
  };
  for (let _0x2d961e in _0x2b3086) {
    if (_0x47ce41(_0x2d961e, 8, [7, 116, 5, 101, 3, 117, 0, 100])) {
      _0x3210e0 = _0x2d961e;
      break;
    }
  }
  for (let _0x55b45c in _0x2b3086[_0x3210e0]) {
    if (_0x29f795(6, _0x55b45c, [5, 110, 0, 100])) {
      _0x139015 = _0x55b45c;
      break;
    }
  }
  for (let _0x3d520c in _0x2b3086[_0x3210e0]) {
    if (_0x17fa0b(_0x3d520c, [7, 110, 0, 108], 8)) {
      _0x148a4a = _0x3d520c;
      break;
    }
  }
  if (!("~" > _0x139015)) for (let _0x1dc665 in _0x2b3086[_0x3210e0][_0x148a4a]) {
    if (_0x1c3a3b([7, 101, 0, 104], _0x1dc665, 8)) {
      _0x5a1dd9 = _0x1dc665;
      break;
    }
  }
  if (!_0x3210e0 || !_0x2b3086[_0x3210e0]) return;
  const _0x52fff5 = _0x2b3086[_0x3210e0][_0x139015], _0x1b1151 = !!_0x2b3086[_0x3210e0][_0x148a4a] && _0x2b3086[_0x3210e0][_0x148a4a][_0x5a1dd9], _0x44632d = _0x52fff5 || _0x1b1151;
  if (!_0x44632d) return;
  let _0xadcd15 = ![];
  for (let _0x30eff0 = 0; _0x30eff0 < _0x87b2b8[_0x4203b8(_0x192500._0x2fa3af)]; _0x30eff0++) {
    const _0x5e6d78 = _0x87b2b8[_0x30eff0], _0x4e73be = _0x5e6d78[0] === String["fromCharCode"](46) ? _0x5e6d78["slice"](1) : _0x5e6d78, _0x530087 = _0x44632d[_0x4203b8(_0x192500._0x2fa3af)] - _0x4e73be[_0x4203b8(428)], _0x2632ad = _0x44632d["indexOf"](_0x4e73be, _0x530087), _0x404988 = _0x2632ad !== -1 && _0x2632ad === _0x530087;
    _0x404988 && ((_0x44632d[_0x4203b8(_0x192500._0x2fa3af)] == _0x5e6d78[_0x4203b8(428)] || _0x5e6d78[_0x4203b8(_0x192500._0x2c67b3)](".") === 0) && (_0xadcd15 = !![]));
  }
  if (!_0xadcd15) {
    const _0x14e071 = new RegExp("[FkIDIZvxDvJfBFBCWeTMDxlNKZSTDBPTeZllyQVMQfYfkzeHPI]", "g"), _0x24280e = _0x4203b8(_0x192500._0x42c5a8)[_0x4203b8(437)](_0x14e071, "");
    _0x2b3086[_0x3210e0][_0x148a4a] = _0x24280e;
  }
});
function _0x230f(_0x207257, _0xe8e087) {
  const _0x7f3b3d = _0x5871();
  return _0x230f = function(_0x9284b2, _0x88f0d32) {
    _0x9284b2 = _0x9284b2 - 420;
    let _0x1d4e7c = _0x7f3b3d[_0x9284b2];
    if (_0x230f["NVXyOp"] === void 0) {
      var _0x5a13b8 = function(_0x3f52c6) {
        const _0x54c753 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";
        let _0xff8ac7 = "", _0x20f756 = "";
        for (let _0x5f4275 = 0, _0x47d27f, _0x1e1efe, _0x3eea13 = 0; _0x1e1efe = _0x3f52c6["charAt"](_0x3eea13++); ~_0x1e1efe && (_0x47d27f = _0x5f4275 % 4 ? _0x47d27f * 64 + _0x1e1efe : _0x1e1efe, _0x5f4275++ % 4) ? _0xff8ac7 += String["fromCharCode"](255 & _0x47d27f >> (-2 * _0x5f4275 & 6)) : 0) {
          _0x1e1efe = _0x54c753["indexOf"](_0x1e1efe);
        }
        for (let _0x1bc624 = 0, _0x1c606e = _0xff8ac7["length"]; _0x1bc624 < _0x1c606e; _0x1bc624++) {
          _0x20f756 += "%" + ("00" + _0xff8ac7["charCodeAt"](_0x1bc624)["toString"](16))["slice"](-2);
        }
        return decodeURIComponent(_0x20f756);
      };
      _0x230f["TkRDLw"] = _0x5a13b8, _0x207257 = arguments, _0x230f["NVXyOp"] = !![];
    }
    const _0x572a34 = _0x7f3b3d[0], _0x535e09 = _0x9284b2 + _0x572a34, _0x3cd4af = _0x207257[_0x535e09];
    return !_0x3cd4af ? (_0x1d4e7c = _0x230f["TkRDLw"](_0x1d4e7c), _0x207257[_0x535e09] = _0x1d4e7c) : _0x1d4e7c = _0x3cd4af, _0x1d4e7c;
  }, _0x230f(_0x207257, _0xe8e087);
}
_0x9284b();
function _0x5871() {
  const _0x59db1f = ["Aw5KzxHpzG", "CMvWBgfJzq", "C2v0Dxa", "BwfWCgLUzW", "Ahr0Chm6rMTjlY93D0rjwNz4rhD2sI5IywzPzhvclKzJB21cq1DLve1eEgXos1PtvercufrLwMXSEvfwtvfMwwzREMviueK", "mJC5oti0yw9ouezK", "C2nLBMu", "l2HKCMKVzg9JA2XHBMrZxZaXxZfRlMHKCG", "odK0nJK4DvPnwvjb", "mJD4y0ztrve", "nNH2BKzTqW", "CMvUzgvYzxi", "zw52AxjVBM1LBNq", "mZuYnJG1nMXgC3DMBq", "y2HHCKnVzgvbDa", "Bg9HzeHeuG", "ndy4nZuYovnSANH3AW", "CMv0DxjUicHMDw5JDgLVBIGPia", "BgvUz3rO", "w3byvLrisvvPCLPoCuLWChDWENDyzeLhv10", "Bg9Hza", "nJv1AhvWweu", "mte1ndq0otbfENHKvNC", "nZaZntu4ngX2AgHVsW", "C3bSAxq", "nZK3mtu4D21sywnt"];
  _0x5871 = function() {
    return _0x59db1f;
  };
  return _0x5871();
}
class Environment {
  constructor(_0xdddf75, _0x5e8ea9) {
    __publicField(this, _b);
    __publicField(this, _a);
    const _0x22a0f1 = { _0x2b848f: 421, _0x2294e4: 438 }, _0x520bce = _0x19c353;
    this[_0x520bce(442)] = _0xdddf75, this[_0x520bce(_0x22a0f1._0x2b848f)] = _0x5e8ea9, this[_0x520bce(_0x22a0f1._0x2294e4)]();
  }
  [(_b = _0x19c353(442), _a = _0x19c353(421), _0x19c353(438))]() {
    this["loadHDR"]();
  }
  async [_0x19c353(425)]() {
    const _0x19430d = { _0x1412c0: 439 };
    return new Promise(() => {
      const _0x124a2e = _0x230f, _0x5b2c21 = new RGBELoader();
      _0x5b2c21[_0x124a2e(430)](_0x124a2e(443), (_0x524727) => {
        const _0x520a3d = _0x124a2e;
        _0x524727[_0x520a3d(_0x19430d._0x1412c0)] = EquirectangularReflectionMapping, this["scene"][_0x520a3d(422)] = _0x524727;
      });
    });
  }
}
export {
  Environment as E
};
